<template>
  <div class='container'>
     <Modal
        v-model="modal"
        :title="showTitle"
        @on-ok="ok"
        @on-cancel="cancel">
    </Modal>
  </div>
</template>

<script>
export default {
  props: {
    showTitle: {
      type: String,
      default: '添加'
    }
  },
  data () {
    return {
      modal: false
    }
  },
  methods: {
    ok () {},
    cancel () {}
  }
}
</script>

<style scoped lang='less'></style>
